<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta content="IE=8" http-equiv="X-UA-Compatible" />
    <title>文档列表</title>
    {$QPath}
    <link rel="stylesheet" type="text/css" href="__TMPL__../Admin/Public/base.css" />
    <script type="text/javascript" src="__TMPL__../Admin/Public/mootools.js"></script>
    <script type="text/javascript" src="__TMPL__../Admin/Public/base.js"></script>
    <style type="text/css">
        .grid td{
            vertical-align:top;
        }
        td.created{
            line-height:20px;
            font-size:12px;
        }
        .posttitle{letter-spacing:1px;}
        .posttitle div{font-size:14px;font-weight:bold;}
        .posttitle li{float:left;}
        .posttitle li a{ text-decoration:none;font-size:12px;color:#21759B;padding:0 2px; }
        .posttitle li a:hover{background-color:#21759B;color:#fff;}
        .commit{color:#DA4E5C;}

        th.identifier,td.identifier{padding:0 4px;width:32px;text-indent:0;cursor:default;}
        th.identifier img{margin-top:6px;}
   </style>
</head>
<body>
    <div id="container">
        <table class="tabmenu" cellspacing="0">
            <tbody>
                <tr>
                    <td class="wedge">&nbsp;</td>
                    <td class="wmenu here">文档列表</td>
                    <td class="wmenu"><a href="__URL__/add"><span>添加文档</span></a></td>
                    <td>&nbsp;</td>
                </tr>
            </tbody>
        </table>
        <div class="main">
            <ul class="fnc">
                <li class="page">{$page}</li>
            </ul>
            <form method="post" action="__URL__">
                <input type="hidden" name="a">
                <table class="data">
                    <thead>
                        <tr>
                            <th class="cbCell"><input type="checkbox" id="effectAll" /></th>
                            <th>栏目</th>
                            <th class="identifier">
                                <img src="__TMPL__../Admin/Public/img/thumb.png" title="缩略图" />
                            </th>
                            <th>标题</th>
                            <th>发布人</th>
                            <th>日期</th>
                        </tr>
                    </thead>
                    <tbody class="grid">
                        <present name="list">
                            <?php
                            $status=$postConfig['poststatus'];
                            ?>
                            <iterate name="list" id="vo">
                                <tr>
                                    <td><input type="checkbox" name="sid[]" value="{$vo['id']}"/></td>
                                    <td>{$vo['typename']}</td>
                                    <td class="identifier">
                                        <if condition="$vo['thumb'] neq ''">
                                        <img src="__TMPL__../Admin/Public/img/thumb.png" title="缩略图" onmouseover="preview('{$vo['thumb']}')"/>
                                        </if>
                                    </td>
                                    <td class="posttitle {$vo['status']}">
                                        <div>{$vo['title']}</div>
                                        <ul>
                                            <li><a href="__URL__/edit/post/{$vo['id']}">编辑</a></li>
                                            <li><a href="__URL__/removal/post/{$vo['id']}">删除</a></li>
                                        </ul>
                                    </td>
                                    <td>{$vo['poster']}</td>
                                    <td class="created">
                                        <div>{$vo['created']}</div>
                                        <div>{$status[$vo['status']]}</div>
                                    </td>
                                </tr>
                            </iterate>
                        <else/>
                            <tr class="notfound">
                                <td colspan="20">没有记录</td>
                            </tr>
                        </present>
                    </tbody>
                </table>
            </form>
            <ul class="fnc">
                <li class="page">{$page}</li>
            </ul>
        </div>
    </div>
    <script type="text/javascript">
        //预览缩略图
        function preview(imgsrc){
        }
        /**
        top.yaSearch.register({
            action:"__ACTION__",
            name:"account",
            tip:"查找用户",
            advanced:"__URL__/search"
            });
            */
    </script>
</body>
</html>